CC       = mpicc 
MPICC       = mpicc 
#CFLAGS  = -x03
CFLAGS   = -g

EXECS   = start

all: $(EXECS)

clean:
	/bin/rm -f *.o; 	/bin/rm -f *~;

bibrand.o: bibrand.c
	$(CC)  $(CFLAGS) -c bibrand.c -o bibrand.o

best.o: best.c
	$(CC)  $(CFLAGS) -c best.c -o best.o

mine.o: mine.c
	$(CC)  $(CFLAGS) -c mine.c -o mine.o

2pndp.o: 2pndp.c
	$(CC)  $(CFLAGS) -c 2pndp.c -o 2pndp.o

buffer.o: buffer.c
	$(CC)  $(CFLAGS) -c buffer.c -o buffer.o

master.o: master.c
	$(MPICC)  $(CFLAGS) -c master.c -o master.o

slave.o: slave.c
	$(MPICC)  $(CFLAGS) -c slave.c -o slave.o

start.o: start.c
	$(MPICC)  $(CFLAGS) -c start.c -o start.o

start: start.o master.o slave.o 2pndp.o best.o mine.o bibrand.o buffer.o
	$(MPICC) $(CFLAGS) -o start start.o master.o slave.o 2pndp.o best.o mine.o bibrand.o buffer.o  -lm -pthread


